import request from "@/utils/request.js"

// 最新题目列表
export function newTopic(data){
	return request({
		url: "/newTopic",
		method: "post",
		data
	})
}

// 题目列表
export function topicList(data){
	return request({
		url: "/topicList",
		method: "post",
		data
	})
}

// 随机题目列表
export function topicRandList(data){
	return request({
		url: "/topicRandList",
		method: "post",
		data
	})
}

// 每日一题
export function topicDaily(data){
	return request({
		url: "/topicDaily",
		method: "post",
		data
	})
}

// 每日一题
export function topicDetailed(data){
	return request({
		url: "/topicDetailed",
		method: "post",
		data
	})
}

// 用户生成题目
export function createTopic(data){
	return request({
		url: "/createTopic",
		method: "post",
		data
	})
}

// 保存生成的题目
export function saveTopic(data){
	return request({
		url: "/saveTopic",
		method: "post",
		data
	})
}

// 删除题目
export function delTopic(data){
	return request({
		url: "/delTopic",
		method: "post",
		data
	})
}

/**
 * 综合题库 =================================================================
 */
// 词语
export function getCi(data){
	return request({
		url: "/ci",
		method: "post",
		data
	})
}